import java.util.Date;

public class Disc {
    private int key;
    private String name;
    private boolean status;
    private boolean entity;

    public boolean isEntity() {
        return entity;
    }

    public void setEntity(boolean entity) {
        this.entity = entity;
    }

    private int price;
    private Date date;
    private int number_of_times;

    @Override
    public String toString() {
        String statu;
        if (status){
            statu="此碟片可租！";
        }else {
            statu="此碟片已出租！";
        }
        return "--------------------------------------------------------------------------\n"+"信息->" +
//                "key=" + key +
                "\t碟片名='" + name + '\'' +
                "\t状态=" + statu +
//                ", status=" + status +
                "\t 价格（元/天）=" + price +
                "\t 上次出租时间=" + date +
//                ", number_of_times=" + number_of_times +
                "<-"+"\n--------------------------------------------------------------------------";
    }
//
//    public int getKey() {
//        return key;
//    }
//
//    public void setKey(int key) {
//        this.key = key;
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getNumber_of_times() {
        return number_of_times;
    }

    public void setNumber_of_times() {

        this.number_of_times = number_of_times + 1;
    }
}
